<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

 
</head>

<body>
  <script type="text/javascript">
    //   const arr = [1, 2, 3, 4, 5, 6]
    //     const arr1 = arr.map(
    //         function (element) {
    //             return element + 1
    //         }
    //     )

    // const arr = [1, 2, 3, 4, 5, 6]
    //     const arr1 = arr.map(Element=>Element+1)
    //       console.log(arr1);

//---------------------------------------------------------------

        // const new_arr2 = arr.filter(
        //     function (e){
        //         return e%2==0  //true：返回 false：不符合条件=>过滤
        //     }
        // )

        // const arr2 = arr.filter(Element=>Elemente%2==0 )
//---------------------------------------------------------------------

        //   var sum = arr.reduceRight(
        //     function (v1,v2){
        //         return v1*v2
        //     }
        // )
            
        // const arr3 = arr.reduceRight((Element1,Element2)=>Elementv1*v2)
        // console.log(arr3);

//--------------------------------------------------------------------
        // var isMatch = arr.every(
        //     function (e){
        //         return e>1
        //     }
        // )

        // const arr4 = arr.every(Element1=>Element1>1)
        //     console.log(arr4);







          </script>

</body>

</html>